package com.hongyuan.sellfitness.ui.home.beans;

import com.hongyuan.sellfitness.utils.BigDecimalUtils;

import java.util.List;

public class MemberOsBean {


    private List<ListBean> list;

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public static class ListBean {
        /**
         * os_id : 22
         * os_name : 湖州首玺健身湖东店
         * juli : 1890
         * os_img : http://hongyuangood.oss-cn-hangzhou.aliyuncs.com/uplaod/image/20190814/6c6fb1bfc62e2c13031096593660c5fc05a6fdea_800x254.jpg
         */

        private int os_id;
        private String os_name;
        private int juli;
        private String os_img;

        public int getOs_id() {
            return os_id;
        }

        public void setOs_id(int os_id) {
            this.os_id = os_id;
        }

        public String getOs_name() {
            return os_name;
        }

        public void setOs_name(String os_name) {
            this.os_name = os_name;
        }

        public String getJuli() {
            if(juli < 1000){
                return juli+"m";
            }else{
                return BigDecimalUtils.div(String.valueOf(juli),"1000",2)+"km";
            }
        }

        public void setJuli(int juli) {
            this.juli = juli;
        }

        public String getOs_img() {
            return os_img;
        }

        public void setOs_img(String os_img) {
            this.os_img = os_img;
        }
    }
}
